import logging

def get_all_logger_names():
    """获取所有已注册的logger名称"""
    return list(logging.Logger.manager.loggerDict.keys())

def get_logger_by_name(name):
    """根据名称获取logger实例"""
    return logging.getLogger(name)
